<%-- 
    Document   : index
    Created on : Nov 27, 2012, 4:07:30 PM
    Author     : tuan
--%>

<%@page import="assignment2.stub.UsersTbl_Stub"%>
<%@page import="java.util.Iterator"%>
<%@page import="assignment2.data.Products"%>
<%@page import="java.util.List"%>
<%@page import="assignment2.stub.ProductsTbl_Stub"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
//        ProductsTbl_Stub stub = new ProductsTbl_Stub();
//        List<Products> list = stub.listByCategoryID("1");
//        Iterator<Products> it = list.iterator();
//        while(it.hasNext()){
//        Products pro = it.next();
//        out.println(pro.getProductName());
//        }

//        UsersTbl_Stub usersTbl_Stub = new UsersTbl_Stub();
//       if( usersTbl_Stub.checkLogin("admin", "qwertyuk")){
//       
//       out.println("OK");
//       
//       }else{
//       out.println("fail");
//       
//       }
        
        
        
%>
<a href="Home.jsp">home</a>
    </body>
</html>
